home *** CD-ROM | disk | FTP | other *** search
- Path: galaxy.ucr.edu!not-for-mail
- From: thp@cs.ucr.edu (Tom Payne)
- Newsgroups: comp.lang.c,comp.lang.c++
- Subject: Re: Why is C faster than FORTRAN?
- Followup-To: comp.lang.c,comp.lang.c++
- Date: 20 Mar 1996 22:26:25 GMT
- Organization: University of California, Riverside
- Distribution: usa
- Message-ID: <4iq0mh$qvd@galaxy.ucr.edu>
- References: <4hv2ho$d8t@news.interpath.net> <4i2c5e$t70@kiwi.futuris.net> <4i4poj$j7e@thorn.cc.usm.edu> <danpop.826738267@rscernix> <1996Mar20.000516.21472@eos.arc.nasa.gov>
- NNTP-Posting-Host: corvette.ucr.edu
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- Jim Stevenson's reader (jim-ra@eos.arc.nasa.gov) wrote:
- : danpop@mail.cern.ch (Dan Pop) writes:
- :
- :
- : >>Is C normally faster than FORTRAN?
- :
- : >No. Fortran is normally faster than C. Fortran forbids data aliasing
- : >(behind compiler's back) and this allows more aggressive optimization,
- : >especially on code involving arrays.
- :
- : So your saying that data aliasing is THE reason that FORTRAN's
- : faster than C, huh? I figured the MATURITY of Fortran compilers would
- : play a bigger role.
-
-
- It's one of the reasons that it is easier to write agressive optimizers
- for FORTRAN. Typically, FORTRAN users more willing (and, perhaps, able)
- to pay for agressive optimization, though with the advent of highly
- parallel microcomputers, some of the most agressive (low-level)
- optimizations reaches C first.
-
- Tom Payne (thp@cs.ucr.edu)
-
-
-